package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.Blog;

public interface BlogService extends IService<Blog> {

    void saveData(Blog blog);
    //点赞添加
    void addAndCancelPraiseCount(Long uid,Boolean isAdd);
    //评论添加
    void addAndCancelCommentCount(Long uid,Boolean isAdd);
    //删除用户 的博客
    void deleteBlogListByUser(String userId);

    //如果他下面有评论不删除,如果是最高级评论 博客要减去对应的评论点赞数量
    void deleteCommentListByUser(String userId);
}
